package futures

fun main() {
    infix fun Int.times(str: String) = str.repeat(this)
    println(2.times("abc"))

    val pair: Pair<String, String> = "K" to "V"
    println(pair)

    infix fun String.onto(other: String) = Pair(this, other)
    val myPair = "K".onto("V")
    println(myPair)

    val k = Person("k")
    val v = Person("v")
    k likes v
}

class Person(val name: String) {
    private val likedPeople = mutableListOf<Person>()
    infix fun likes(other: Person) {
        likedPeople.add(other)
    }
}